package com.wlc.exception.demo03;

/**
 * @author 王立朝 wanglichao@champion-credit.com
 * @description 透支异常类
 * @date 2021-07-08 16:09
 */
public class OverdraftException extends Exception {
    /**
     * 透支额
     */
    double deficit;

    /**
     * 获取透支额
     *
     * @return
     */
    double getDeficit() {
        return this.deficit;
    }

    public OverdraftException(String message, double deficit) {
        super(message);
        this.deficit = deficit;
    }
}
